import type { LayoutLoad } from './$types';
import { currentDataset$, type Dataset } from "@store/entity/dataset";
import { loadingByCode } from "@service/dataset"
import { get as getVal } from "svelte/store";
import { browser } from "$app/environment";

export const load = (async ({params}) => {
   // if (!browser) {
  //   await loadingByCode(params.dataset_code);
  // }
  
  console.log('[dataset_code]+layout =>', params)
  return {
  };
}) satisfies LayoutLoad;
// this is needed to give us force prerendering of all pages
export const prerender = false